package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Emp;
import com.itheima.pojo.EmpQueryParam;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface EmpMapper extends BaseMapper<Emp> {

    // @Select("select count(*) from emp ")
    // Long getListCount();
    //
    // @Select("select * from emp")
    List<Emp> getEmpsList(EmpQueryParam empQueryParam);

    // @Options(useGeneratedKeys = true,keyProperty = "id")
    // @Insert("insert into emp(username,name,gender,phone,image,job,entry_date,dept_id,create_time,update_time) values(#{username},#{name},#{gender},#{phone},#{image},#{job},#{entryDate},#{deptId},#{createTime},#{updateTime})")
    // void save(Emp emp);
    //
    //
    // void delBatchEmp(@Param("ids") List<Integer> ids);
    //
    // @Select("select * from emp  where id = #{emp.id}")
    // Emp selectEmpById(Integer id);
    //
    // void updateEmpInfo(Emp emp);
    //
    //
    // @Select("select * from emp")
    // List<Emp> getAllEmps();
    //
    // @Select("select  * from emp where dept_id =#{id}")
    // List<Emp> selectEmpByDeptId(Integer id);
}
